home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- #
- # Startup script for squid
- #
- # $Id: squid,v 1.5 1998/11/18 10:56:56 achimg Exp $
-
- prefix=/usr/freeware/squid
- exec_prefix=${prefix}
- PATH=${exec_prefix}/bin:/bin:/usr/bin
- export PATH
- CONFIG=/etc/config
- IS_ON=/etc/chkconfig
-
-
- if $IS_ON verbose ; then
- ECHO=echo
- else # For a quiet startup and shutdown
- ECHO=:
- fi
-
- case "$1" in
- 'stop')
- if $IS_ON squid ; then
- $ECHO 'Stopping squid.'
- squid -k shutdown
- sleep 10
- $ECHO
- fi
- ;;
-
- 'start')
- if $IS_ON squid ; then
- $ECHO 'Starting squid.'
- RunCache.socks5 &
- $ECHO
- fi
- ;;
-
- *)
- echo "usage: $0 {start|stop}"
- ;;
-
- esac
- exit 0
-